package com.nbsaas.boot.manufacturing.rest.convert;

import com.nbsaas.boot.manufacturing.data.entity.Equipment;
import com.nbsaas.boot.manufacturing.api.domain.simple.EquipmentSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 设备-列表对象转换器
*/

public class EquipmentSimpleConvert implements Converter<EquipmentSimple, Equipment> {




@Override
public EquipmentSimple convert(Equipment source) {
    EquipmentSimple result = new EquipmentSimple();

                result.setNote(source.getNote());
                result.setPurchaseDate(source.getPurchaseDate());
                result.setSafetyRequirements(source.getSafetyRequirements());
                result.setProductionCapacity(source.getProductionCapacity());
                result.setEquipmentCode(source.getEquipmentCode());
                result.setExpectedLife(source.getExpectedLife());
                result.setDepreciationMethod(source.getDepreciationMethod());
                result.setDescription(source.getDescription());
                result.setAccuracy(source.getAccuracy());
                result.setEquipmentParameters(source.getEquipmentParameters());
                result.setPurchasePrice(source.getPurchasePrice());
                result.setEquipmentType(source.getEquipmentType());
                result.setManufacturer(source.getManufacturer());
                result.setCurrent(source.getCurrent());
                result.setMaintenanceRequirements(source.getMaintenanceRequirements());
                result.setTechnicalSpecifications(source.getTechnicalSpecifications());
                result.setAnnualDepreciationRate(source.getAnnualDepreciationRate());
                result.setWorkCenterId(source.getWorkCenterId());
                result.setMaintenanceCycle(source.getMaintenanceCycle());
                result.setSupplier(source.getSupplier());
                result.setNextMaintenanceDate(source.getNextMaintenanceDate());
                result.setModel(source.getModel());
                result.setPower(source.getPower());
                result.setId(source.getId());
                result.setLastDate(source.getLastDate());
                result.setLastMaintenanceDate(source.getLastMaintenanceDate());
                result.setImage(source.getImage());
                result.setManager(source.getManager());
                result.setNetValue(source.getNetValue());
                result.setEquipmentCategory(source.getEquipmentCategory());
                result.setWeight(source.getWeight());
                result.setAddDate(source.getAddDate());
                result.setAccumulatedDepreciation(source.getAccumulatedDepreciation());
                result.setVoltage(source.getVoltage());
                result.setOperationManual(source.getOperationManual());
                result.setName(source.getName());
                result.setStatus(source.getStatus());
                result.setDimensions(source.getDimensions());


    return result;
}

}